package cn.edu.zust.se.springmvctest.model;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 状态枚举
 * @author jmj
 * @since 2022-5-6 0006 19:08
 */
@Getter
@AllArgsConstructor
public enum ReturnCode {
    /** 状态枚举 */
    FAIL(400,"失败"),
    ERROR(500,"错误"),
    SUCCESS(200,"成功"),
    UN_AUTHORIZED(401,"未认证"),
    NO_AUTHORITY(403,"权限不足");

    /** 状态码 */
    private final Integer code;
    /** 状态信息 */
    private final String message;
}